export interface Item {
  addtime: string;
  dataCallStoredProcedure: string;
  dataMonth: string;
  dataName: string;
  dataPassingParameters: null;
  dataType: string;
  dataUnit: string;
  dataValue: string;
  dataYear: string;
  id: number;
  remark: string;
  status: number;
  updateTime: string;
  Building?: string;
  ChargingAmount?: number;
  ChargingCount?: number;
  ChargingKWH?: number;
}

export interface ItemCollection {
  [key: string]: Item[];
}

export const colorArr = [
  'rgba(255, 99, 132, 1)',
  'rgba(54, 162, 235, 1)',
  'rgba(255, 206, 86, 1)',
  'rgba(75, 192, 192, 1)',
  'rgba(153, 102, 255, 1)',
  'rgba(255, 159, 64, 1)',
  'rgba(255, 87, 51, 1)',
  'rgba(51, 255, 87, 1)',
  'rgba(51, 161, 255, 1)',
  'rgba(255, 215, 0, 1)',
];

export interface Month {
  Water_weight_everymonth: number;
  Water_amount_everymonth: number;
  Water_times_everymonth: number;
  Electric_EveryMonth_times: number;
  Electric_EveryMonth_AllMoney: number;
  Electric_EveryMonth_ALLQuantity: number;
}
